<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

/**
 * Description of OgConfigurationclass
 *
 * @author martin
 */
class OgConfiguration {
  protected static $singleton;
  private $configYaml;

  public function  __construct() {
    $this->configYaml = OgYaml::load(__DIR__.'/config.yml');
  }


  /**
   * Returns instance of OgConfiguration
   *
   * @author Martin Vancura, DiS. <vancura@martinvancura.cz>
   * @access public
   * @static
   * @return OgConfiguration
   */
  public static function singleton() {
    if (self::$singleton === null) {
      self::$singleton = new OgConfiguration();
    }
    return self::$singleton;
  }

  public function getPath($name) {
    return $this->configYaml['paths'][$name];
  }
}
?>
